package cn.gintone.mybatis.springboot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.gintone.mybatis.mapper.SysUserMapper;
import cn.gintone.mybatis.model.SysUser;
import cn.gintone.mybatis.springboot.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private SysUserMapper userMapper;
	@Override
	public SysUser findById(Long id) {
		return userMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<SysUser> findAll() {
		return userMapper.selectAll();
	}

}
